#pragma once

#include "Listenable.h"
#include "TimeUpdateEvent.h"

void update();

class TimerService : public Listenable
{
private:
	void addOneSec();
	void addOneMin();
	void addOneHour();
public:
	uint8_t hour = 0;
	uint8_t minute = 0;
	uint8_t second = 0;
	uint8_t millsec = 0;
	void init();
	void addThirtyMillsec();
	void pause();
	void start();
	void reset();
	TimerService() {};
	~TimerService() {};
};

extern TimerService timerService;
